Using The Style Object
- Add a function to this page call it changeStyle()
- When clicked the button in this page should invoke the function changeStyle().
- changeStyle() should then change the style properties of elements in this page. Start off with a simple example e.g. changing colour of an element. Then work up to more complex examples, changing position, changing multiple properties. Here are some properties you could experiment with.
- color
- fontFamily
- fontSize
- backgroundColor
- position